"Utility functions"

import urlparse

__all__ = ('get_host',)

def get_host(input):
    if not input.startswith('http://'):
        input = 'http://' + input
    return urlparse.urlparse(input, 'http')[1]

